package com.lilike.music;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.Transactional;

import java.io.File;

@Slf4j
@SpringBootApplication
@MapperScan("com.lilike.music.dao")
public class HwMusicApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(HwMusicApplication.class, args);
    }

    @Override
    @Transactional
    public void run(String... args) {
        String path = new File("").getAbsolutePath();
        System.out.println(path);
    }
}

